﻿function TabView(Url, TabName, TabTitle, icon) {
    /// <summary>
    /// 当弹出选项卡是选择判断，如果出错就弹出新窗口
    /// </summary>
    /// <param name="Url">链接</param>
    /// <param name="TabName">TAB名称</param>
    /// <param name="TabTitle">TAB标题</param>
    try {
        top.addUTab(Url, TabName, TabTitle, icon);
    } catch (e) {
        window.open(Url);
    }
}
function RemTab(tid) {
    top.X('RegionPanel1_mainRegion_mainTabStrip').removeTab(tid);
}